home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / console / svgatext.3 / svgatext / SVGATextMode-1.3 / contrib / scripts / cleanup_TextConfig < prev    next >
Encoding:
Text File  |  1995-08-02  |  384 b   |  16 lines

  1. #!/bin/sh
  2. #
  3. # This little script formats The TextConfig file, so all config lines use the same spacing
  4. #
  5. # Contributed by Allessandro Rubini.
  6. #
  7. #
  8.  
  9. if [ "$1" = "" ]; then
  10.     CONFIGFILE=/etc/TextConfig
  11. else
  12.     CONFIGFILE=$1
  13. fi
  14.  
  15. awk '$11 ~ /^font$/ && /^"/ {printf "%-17s %3d  %4d %4d %4d %4d  %4d %4d %4d %4d  font %5s\n",$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$12; continue} {print}' $CONFIGFILE
  16.